<style>
.fui-navbar,.fui-footer{
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.75rem;
    background: #fff;
    box-shadow:0 0 0 rgba(0,0,0,0.1);
    -webkit-box-shadow:0 0 0 rgba(0,0,0,0.1);
    -moz-box-shadow:0 0 0 rgba(0,0,0,0.1);
    z-index:108;
}
.fe-floatright-bottom {
    min-height: 10px;
    position: fixed;
    bottom: 15px;
	right:15px;
    text-align: center;
    z-index: 1003;
}
.fe-floatright-bottom a{
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #333;
	color:#fff;
	line-height:1.6rem;
}
.fe-floatright-bottom a .icon{
	color:#fff;
	font-size:1.1rem;
	height:1.6rem;
	opacity:1;
}
.sw_progress {
    position: absolute;
    display: none;
    height: 3px;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(0,0,0,.2);
}
.sw_progress span {
    display: block;
    height: 100%;
    width: 0;
    background-color: #08A1EF;
    transition: width 800ms cubic-bezier(0.260,.860,.440,.985);
}
.avatar-follow{
	height: 50px;
    width: 50px;
    background: #fff;
    margin: auto;
    border-radius: 50px;
    border: 2px solid #fff;
}

.footer-msg{
	 position: fixed;
	 bottom:0;
}
.popup .popup-center .fui-cell-group .fui-cell .fui-input {
    background: #f2f2f2;
}
.likepiaofu img{width: 0px;position: fixed; bottom: 100px; right: 15px;}
.followpiaofu img{width: 0px;position: fixed; bottom: 260px; right: 25px;}
.fui-icon-group .fui-icon-col {
    margin: 0;
}
.search-input input {border: 0px solid #b4b4b4;background:#000;border-radius:1.2rem;padding:0.4rem 0.5rem;opacity:0.3;color:#fff;}
.fui-header:after {border-bottom: 0px solid #D9D9D9;}
.fui-tag-red-o{margin:0.2rem;color: #fff;font-size:0.40rem;line-height:0.4rem;-webkit-border-radius: 0.4rem;border-radius: 0.4rem;font-style: normal;padding:0.13rem 0.3rem;border: 1px solid #fff;}</style>
</style>
<div class="fui-page">
	<div class="fui-content" style="padding-bottom:0">
		<div class="fui-list" style="padding:1rem;">
                <div class="fui-card" style="width:100%;margin:0 auto;padding-top:0; border: 0 solid #ccc;">
					<img id="image" src="{{pagedata.poster||'../addons/jy_h5ewm/image/bg.jpg'}}" style="border: 2px solid #e7e7eb;border-radius:0.2rem;width:100%"/>
                </div>
			<div class="fui-navbar" style="position: absolute;background:none;height:auto;padding:0 3rem;bottom:2rem">
				<a class="nav-item" href="javascript:;" ng-click="access_json(pagedata.item.link)" style="padding:0.3rem">
					<div class="fee-tagup-nav" style="border-radius:1rem;line-height:1.8rem;font-size:0.6rem;color:{{pagedata.item.colorbtn||'#fff'}};background:{{pagedata.item.colorbtngb||'#4491F1'}};box-shadow:2px 3px 4px {{pagedata.item.colorbtndi||'#333'}};">
						{{pagedata.item.fanbtn||'返回活动'}}
					</div>
				</a>
				<a class="nav-item" href="javascript:;" ng-click="savePicture()" style="padding:0.3rem">
					<div class="fee-tag-nav" style="border-radius:1rem;line-height: 1.8rem;font-size:0.6rem;color:{{pagedata.item.colorbtn||'#fff'}};background:{{pagedata.item.colorbtngb||'#4491F1'}};box-shadow:2px 3px 4px {{pagedata.item.colorbtndi||'#333'}};">
						保存海报
					</div>
				</a>
			</div>
        </div>
		<div ng-if="pagedata.setting.nocopyright!=1" ng-include="sys_html('common/_copyright',true)"></div>
	</div>
</div>

<div ng-if="pagedata.isdiyform==1" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:url('{{siteroot}}../core/resource/images/login-bg-sm.jpg');background-size: 100%;">
		<div class="fui-content" style="position:relative;background:none;height:auto;width:auto;padding:1rem 0.5rem;margin-bottom:1rem">
			<div style="padding:0 0.5rem">
				<div class="fui-code" style="background: none;border-radius: 0.5rem;padding-bottom:1rem">
				<div class="fui-cell-group radius" style="background:none">
					<div ng-repeat="item in pagedata.post.diyform" ng-class="{'fui-cell':1, 'must':item.ismust==1}" style="height:auto;">
						<div class="fui-cell-label" style="width:3rem">{{item.title}}</div>
						<div class="fui-cell-info">
						<input type="text" class='fui-input' placeholder="{{item.placeholder}}"  ng-model="item.value"/>
						</div>
					</div>
				</div>
				</div>
				<button class="weui_btn weui_btn_primary sysbgcolor" style="border-radius:1rem;margin: auto;margin-top:1.5rem;width:80%;" href='javascript:;' ng-click="pagedata.upposter()">确认打卡</button>
			</div>		
		</div>
		</div>
	</div>
</div>
<script>
var triggerEvent = "touchstart";
scope.savePicture=function(){
	scope.message('长按海报图片保存');
	return '';
}
scope.pagedata.upposter=function(){
	scope.post_json('/item/upposter/',scope.pagedata.post,function(res){
		console.log(res);
		scope.pagedata.poster=res.poster;
		scope.pagedata.isdiyform=0;
		scope.message('操作成功');
		scope.$evalAsync();
	})
}
</script>